﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UI.gongwen
{
    public partial class gwsq : Form
    {
        public int uid=1;
        public gwsq()
        {
            InitializeComponent();
        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
          // string i = skinTextBox1.Text;
       //    string y = skinTextBox2.Text;
            if (textBox1.Text == "" || textBox1.Text == null)
            {
                MessageBox.Show("您什么都没输入！");
                return;
            }
            //if (UI.Global.isNumber(textBox1.Text) == false)
            //{
            //    MessageBox.Show("您没有输入数字！");
            //    return;
            //}
           string n= textBox1.Text; 
           Model.gongwen gw = new Model.gongwen ();
           gw.Uid = UI.Global.uid;
           gw.Season=n;
           gw.Isaccept=0;
            gw.Datetime = DateTime.Now.ToString();
            DAL.UserServer.Insertgw(gw);
            MessageBox.Show("申请成功，等待处理！");
            this.Close();
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            textBox1.Text = "";
        }
    }
}
